#!/bin/sh

if [ -z $HASTHI_HOME ]; then
	HASTHI_HOME=/u/hperera/svncode/management/target/dist-bin
fi
echo $HASTHI_HOME

for i in $HASTHI_HOME/lib/*.jar
do
  CLASSPATH=$CLASSPATH:$i
done

CLASSPATH=$HASTHI_HOME/classes:$CLASSPATH

#echo $CLASSPATH
LOG_DIR=/u/hperera/logs/election/election_test_`date +%m_%d_%H_%M`.log
echo $LOG_DIR

$JAVA_HOME/bin/java -Xmx1024m -classpath  $CLASSPATH  hasthi.tools.ElectionTester $* > $LOG_DIR &
#$JAVA_HOME/bin/java -Xmx1024m -classpath  $CLASSPATH  hasthi.tools.ElectionTester $*

